package com.example.ordersservice.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 流水号
     */
    private String ordersNumber;

    //用户名
    private String ordersName;
    //用户手机号
    private String ordersPhone;
    //备注
    private String ordersNotes;
    //订单金额
    private BigDecimal ordersAmount;
    //订单详情
    private String ordersDetails;

    private Integer ordersTime;

    /**
     * 3:未支付 0:未接单 1:已接单 2:已完成 4：订单异常
     */
    private Integer ordersStatus;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
